import request from '@/utils/request'

// 预警查询-跟踪-分页查询列表
export function findListByPage(data) {
  return request({
    url: '/onm/event/base/warning/findListByPage',
    method: 'post',
    data
  })
}

// 获取所有的模型
export function modelList(params) {
  return request({
    url: '/onm/event/base/warning/modelList',
    method: 'get',
    params
  })
}

// 获取所有的状态枚举
export function getStatus(params) {
  return request({
    url: '/sys/codes?codeType=WARNING_STATUS',
    method: 'get',
    params
  })
}

// 跟进、关闭预警、解除预警
export function followUp(data) {
  return request({
    url: '/onm/event/base/warning/followUp',
    method: 'post',
    data
  })
}

// 预警查询详情
export function detail(params) {
  return request({
    url: '/onm/event/base/warning/detail',
    method: 'get',
    params
  })
}

// 预警分析-根据分类查询列表
export function warningOfEventList(params) {
  return request({
    url: '/onm/event/base/warning/warningOfEventList',
    method: 'post',
    params
  })
}
